package com.addplus.townmall.server.api.model.town;

import com.addplus.townmall.server.api.model.base.BaseRestModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 分销会员资金流水表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-12-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class DistributionMemberRecord extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 分销会员表主键id
     */
    private Integer distributionMemberId;

    /**
     * 交易类型(1:佣金 2:退佣 3:佣金提现 4:获取赠送)
     */
    private Integer distributionType;

    /**
     * 关联订单主键id
     */
    private Integer orderId;

    /**
     * 商品类型(1:普通 2:拼团 3:其他)
     */
    private Integer orderType;

    /**
     * 单次金额变化(增加则为正数，减少则为负数)
     */
    private BigDecimal distributionAmount;

    /**
     * 分销账号当前余额
     */
    private BigDecimal distributionBalance;

    /**
     * 是否删除(0:否 1:是)
     */
    private Integer isDelete;


}
